<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>Title</title>
</head>
<body>
    添加用户 <a th:href="@{/user/userList}">返回列表</a>
    <p>消息：<span th:text="${msg}"></span></p>
    <form th:action="@{/user/doUserAdd}" method="post">
        <p>
            真实姓名：<input type="text" name="userName"/>
        </p>
        <p>
            账号：<input type="text" name="password"/>
        </p>
        <p>
            密码：<input type="text" name="loginCode"/>
        </p>
        <p>
            <select name="roles" multiple="multiple">
                <option th:each="role:${roleList}" th:value="${role.id}" th:text="${role.roleName}"></option>
            </select>
        </p>
        <p>
            <input type="submit" value="保存"/>
        </p>
    </form>

</body>
</html>